package com.huluobo.base.bean

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 *  Created by LC on 2024/8/1.
 */
//订单商品表,包含所有订单信息,商品价格,商品名称,商品数量
@Entity
data class OrderBean(
    var count: Int,
    val goods_default_price: Int,
    val goods_desc: String,
    @PrimaryKey
    val id: Int,
)

class OrderBeanList : ArrayList<OrderBean>()

//订单类型表,包含订单的类型,待付款,已支付,待收货,待评价,和订单中所有商品
@Entity(tableName = "order_type_info")
data class OrderTypeBean(
    val orders: String,
    var type: OrderType,
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0
)

enum class OrderType {
    PRE_PAY,//待付款
    PAYED,//已支付
    PRE_TAKE_OFF,//待收货
    PRE_COMMENT//待评价
}
